package org.jeecg.modules.demo.soOrderDetail.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @Description: so_order_detail_cbjl
 * @Author: jeecg-boot
 * @Date:   2023-06-25
 * @Version: V1.0
 */
@Data
@TableName("so_order_detail_cbjl")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="so_order_detail_cbjl对象", description="so_order_detail_cbjl")
public class SoOrderDetailCbjl implements Serializable {
    private static final long serialVersionUID = 1L;

	/**id*/
	@TableId(type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "id")
    private String id;
	/**出库单号*/
	@Excel(name = "出库单号", width = 15)
    @ApiModelProperty(value = "出库单号")
    private String sodNo;
	/**采购发票总金额*/
	@Excel(name = "采购发票总金额", width = 15)
    @ApiModelProperty(value = "采购发票总金额")
    private BigDecimal puJine;
	/**预估毛利*/
	@Excel(name = "预估毛利", width = 15)
    @ApiModelProperty(value = "预估毛利")
    private BigDecimal mlJine;
	/**是否取预估成本（0：否，1：是）*/
	@Excel(name = "是否取预估成本（0：否，1：是）", width = 15)
    @ApiModelProperty(value = "是否取预估成本（0：否，1：是）")
    @Dict(dicCode = "yn")
    private Integer isYugu;
	/**出库数量*/
	@Excel(name = "出库数量", width = 15)
    @ApiModelProperty(value = "出库数量")
    private BigDecimal sodTotal;
	/**剩余未预估成本（采购发票总额-预估成本）*/
	@Excel(name = "剩余未预估成本（采购发票总额-预估成本）", width = 15)
    @ApiModelProperty(value = "剩余未预估成本（采购发票总额-预估成本）")
    private BigDecimal syCbjine;
	/**销售日期（发票）*/
	@Excel(name = "销售日期（发票）", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "销售日期（发票）")
    private Date soDate;
	/**创建时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "创建时间")
    private Date createTime;
	/**入库单号*/
	@Excel(name = "入库单号", width = 15)
    @ApiModelProperty(value = "入库单号")
    private String rkNo;
	/**出账日期*/
	@Excel(name = "出账日期", width = 15, format = "yyyy-MM-dd")
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "出账日期")
    private Date czDate;
	/**采购发票数量*/
	@Excel(name = "采购发票数量", width = 15)
    @ApiModelProperty(value = "采购发票数量")
    private BigDecimal pufpTotal;
	/**销售发票数量*/
	@Excel(name = "销售发票数量", width = 15)
    @ApiModelProperty(value = "销售发票数量")
    private BigDecimal sofpTotal;
	/**是否有采购发票（0：否，1：是）*/
	@Excel(name = "是否有采购发票（0：否，1：是）", width = 15)
    @ApiModelProperty(value = "是否有采购发票（0：否，1：是）")
    @Dict(dicCode = "yn")
    private Integer isPufp;
	/**更新人*/
    @ApiModelProperty(value = "更新人")
    private String updateBy;
	/**更新时间*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;
	/**预估成本*/
	@Excel(name = "预估成本", width = 15)
    @ApiModelProperty(value = "预估成本")
    private BigDecimal cbJine;
	/**销售内部编号*/
	@Excel(name = "销售内部编号", width = 15)
    @ApiModelProperty(value = "销售内部编号")
    private String soTradecode;
	/**含税单价*/
	@Excel(name = "含税单价", width = 15)
    @ApiModelProperty(value = "含税单价")
    private BigDecimal hsdj;
	/**含税金额*/
	@Excel(name = "含税金额", width = 15)
    @ApiModelProperty(value = "含税金额")
    private BigDecimal hsje;
	/**出库单价*/
	@Excel(name = "出库单价", width = 15)
    @ApiModelProperty(value = "出库单价")
    private BigDecimal wsdj;
	/**无税金额*/
	@Excel(name = "无税金额", width = 15)
    @ApiModelProperty(value = "无税金额")
    private BigDecimal wsje;
	/**销售发票总金额*/
	@Excel(name = "销售发票总金额", width = 15)
    @ApiModelProperty(value = "销售发票总金额")
    private BigDecimal soJine;
	/**租户id*/
	@Excel(name = "租户id", width = 15)
    @ApiModelProperty(value = "租户id")
    private Integer tenantId;
	/**采购内部编号*/
	@Excel(name = "采购内部编号", width = 15)
    @ApiModelProperty(value = "采购内部编号")
    private String puTradecode;
	/**创建人*/
    @ApiModelProperty(value = "创建人")
    private String createBy;
	/**机构编码*/
    @ApiModelProperty(value = "机构编码")
    private String sysOrgCode;
    /**销售发票单号*/
    @ApiModelProperty(value = "销售发票单号")
    private String invoiceNo;

    @TableField(exist=false)
    private String sotradecode;
    @TableField(exist=false)
    private String putradecode;
    @TableField(exist=false)
    private String pufptotal;
    @TableField(exist=false)
    private String pufpjine;
    @TableField(exist=false)
    private String sofpjine;
    @TableField(exist=false)
    private String sofptotal;
    @TableField(exist=false)
    private String fptime;
}
